package com.bckj.fastboot.paid.api.service;

import com.bckj.fastboot.paid.api.constant.PayConstants;
import com.bckj.fastboot.paid.api.model.RefundRequest;
import com.bckj.fastboot.paid.api.model.RefundResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = PayConstants.SERVICE_ID, contextId = "refund", path = "refund")
public interface RefundRemoteService {

    @PostMapping
    RefundResponse refund(@RequestBody RefundRequest request);
}
